package com.bkgy.controller.tcmPlSpeedRules.controller;

import com.bkgy.controller.tcmPlSpeedRules.entity.pdo.TcmPlSpeedRulesQueryReq;
import com.bkgy.controller.tcmPlSpeedRules.service.ITcmPlSpeedRulesService;
import com.bkgy.controller.tcmPlSpeedRules.entity.TcmPlSpeedRules;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Tag(name = "速度规则")
@Controller
@RequestMapping("/tcmPlSpeedRules")
public class TcmPlSpeedRulesController {

	@Autowired
	private ITcmPlSpeedRulesService service;

	@ResponseBody
	@Operation(summary = "新增")
	@PostMapping("/tcmPlSpeedRulesadd")
	public ResultData<String> savetcmPlSpeedRules (@RequestBody TcmPlSpeedRules obj){
		return service.saveTcmPlSpeedRules(obj);
	}
	@ResponseBody
	@Operation(summary = "修改")
	@PostMapping("/tcmPlSpeedRulesupdate")
	public ResultData<String> updatetcmPlSpeedRules (@RequestBody TcmPlSpeedRules obj){
		return service.updateTcmPlSpeedRules(obj);
	}
	@ResponseBody
	@Operation(summary = "删除")
	@PostMapping("/tcmPlSpeedRulesdelete")
	public ResultData<String> deletetcmPlSpeedRules (@RequestBody TcmPlSpeedRules obj){
		return service.deleteTcmPlSpeedRules(obj);
	}
	@ResponseBody
	@Operation(summary = "分页查询")
	@PostMapping("/tcmPlSpeedRulesPage")
	public ResultData<String> selectPage (@RequestBody TcmPlSpeedRulesQueryReq obj){
		return service.selectPage(obj);
	}
}
